Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS Standardization: Kernel, Power, and Update Policies #635

Merged
merged 4 commits into from
Jan 6, 2025

Conversation

mnaghavi
Copy link
Contributor

@mnaghavi mnaghavi commented Dec 20, 2024

https://rackspace.atlassian.net/browse/OSPC-979

  • Switch to TuneD:

    • Replaces cpupower with TuneD to handle CPU governor settings.
    • Applies the throughput-performance profile for enhanced system performance.
      •      throughput-performance
             Profile for typical throughput performance tuning. Disables power saving mechanisms
             and  enables  sysctl  settings that improve the throughput performance of your disk
             and network IO. CPU governor is set to performance and CPU energy performance  bias
             is set to performance. Disk readahead values are increased.
        
    • Ensures TuneD is installed, enabled.
  • Kernel Version Management:

    • Checks and validates kernel version, failing if it’s below the required version.
    • Pins kernel packages to prevent automatic upgrades that could disrupt stability.
  • Unattended Upgrades Control:

    • Disables unattended upgrades by modifying configuration files.
    • Removes the unattended-upgrades package to ensure no automatic updates occur.

@cloudnull
Copy link
Contributor

This is great as is, but I would like to see if we could convert this to using TuneD?
https://ubuntu.com/server/docs/tuned - tuneD with the high throughput option should take care of the governor for us, as well as perform many other system optimizations which enhance overall performance.

Something like

tuned-adm profile throughput-performance

Output check

tuned-adm active

The package installs a service that will manage the profiles automatically once set.

systemctl status tuned.service 
● tuned.service - Dynamic System Tuning Daemon
     Loaded: loaded (/lib/systemd/system/tuned.service; enabled; preset: enabled)
     Active: active (running) since Sat 2024-12-21 09:36:14 CST; 1min 35s ago
       Docs: man:tuned(8)
             man:tuned.conf(5)
             man:tuned-adm(8)
   Main PID: 1779531 (tuned)
      Tasks: 4 (limit: 76595)
     Memory: 16.8M
        CPU: 448ms
     CGroup: /system.slice/tuned.service
             └─1779531 /usr/bin/python3 -Es /usr/sbin/tuned -l -P

Thoughts?

@mnaghavi
Copy link
Contributor Author

This is great as is, but I would like to see if we could convert this to using TuneD? https://ubuntu.com/server/docs/tuned - tuneD with the high throughput option should take care of the governor for us, as well as perform many other system optimizations which enhance overall performance.

Something like

tuned-adm profile throughput-performance

Output check

tuned-adm active

The package installs a service that will manage the profiles automatically once set.

systemctl status tuned.service 
● tuned.service - Dynamic System Tuning Daemon
     Loaded: loaded (/lib/systemd/system/tuned.service; enabled; preset: enabled)
     Active: active (running) since Sat 2024-12-21 09:36:14 CST; 1min 35s ago
       Docs: man:tuned(8)
             man:tuned.conf(5)
             man:tuned-adm(8)
   Main PID: 1779531 (tuned)
      Tasks: 4 (limit: 76595)
     Memory: 16.8M
        CPU: 448ms
     CGroup: /system.slice/tuned.service
             └─1779531 /usr/bin/python3 -Es /usr/sbin/tuned -l -P

Thoughts?

I think switching to TuneD makes a lot of sense, especially with the added benefits for overall system performance. Will take a look into it

@mnaghavi
Copy link
Contributor Author

mnaghavi commented Jan 2, 2025

@cloudnull
Made the changes to use tuneD with throughput-performance profile
Please let me know if anything else can be improved

@mnaghavi mnaghavi marked this pull request as ready for review January 2, 2025 21:06
@mnaghavi mnaghavi requested a review from LukeRepko January 2, 2025 21:12
@cloudnull
Copy link
Contributor

@cloudnull

Made the changes to use tuneD with throughput-performance profile

Please let me know if anything else can be improved

This is great. Nicely done.

@mnaghavi mnaghavi requested a review from rackerchris January 6, 2025 22:20
Copy link
Contributor

@rackerchris rackerchris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM +1

@rackerchris rackerchris merged commit 68c558e into rackerlabs:main Jan 6, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants